<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@include file="header.jsp"%>
<div id="container">
	<div id="content">
		<h2>
			<img src="resources/img/chek.jpg" alt="UserList" height="16px"
				width="25px">Список пользователей.
		</h2>
		<c:if test="${!empty userList}">
			<table border="1" cellpadding="5px">
				<tr>
					<th>Фамилия</th>
					<th>Имя</th>
					<th>Отчество</th>
					<th>Группа</th>
					<th>Рейтинг</th>
					<th>&nbsp;</th>
				</tr>
				<c:forEach items="${userList}" var="user">
					<tr>
						<td><a href="profile=${user.id}">${user.lastname}</a></td>
						<td>${user.firstname}</td>
						<td>${user.patronymic}</td>
						<td>${user.groupId}</td>
						<td>${user.rating}</td>
						<td><a href="vote/${user.id}">Голосовать</a>
						</td>
					</tr>
				</c:forEach>
			</table>
		</c:if>

		<h2>
			<img src="resources/img/star.jpg" alt="UserList" height="16px"
				width="25px">Топ-5 пользователей.
		</h2>
		<c:if test="${!empty TopUsers}">
			<table class="data" border="1" cellpadding="5px">
				<tr>
					<th>Фамилия</th>
					<th>Имя</th>
					<th>Отчество</th>
					<th>Группа</th>
					<th>Рейтинг</th>
					<th>&nbsp;</th>
				</tr>
				<c:forEach items="${TopUsers}" var="user">
					<tr>
						<td><a href="profile=${user.id}">${user.lastname}</a></td>
						<td>${user.firstname}</td>
						<td>${user.patronymic}</td>
						<td>${user.groupId}</td>
						<td>${user.rating}</td>
						<td><a href="vote/${user.id}">Голосовать</a>
						</td>
					</tr>
				</c:forEach>
			</table>
		</c:if>
	</div>
	<!-- #content-->
</div>
<!-- #container-->
<div class="sidebar" id="sideLeft">
	<c:import url="menu.jsp" />
</div>
<!-- .sidebar#sideLeft -->
<%@include file="footer.jsp"%>